import { ApiHideProperty, ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CartDelVo {

  @ApiProperty({ description: "购物车id" })
  @IsNotEmpty({ message: "购物车id不能为空" })
  cartId: number

  @ApiProperty({ description: "购物车数量" })
  @IsNotEmpty({ message: "购物车数量不能为空" })
  num: number

  @ApiHideProperty()
  userId: number
}